
<template>
  <div class="ma-content-block">
    <a-form :model="form" layout="vertical" class="mt-3 p-5" @submit="submitConfig" ref="formRef">
      <a-row :gutter="24">


        <a-col :span="24">
          <a-form-item
              label="公司名称"
              field="company_name"
              :rules="[{ required: true, message: '散户奖池增加消费系数' }]"
          >
            <a-input v-model="form.company_name" placeholder="请输入 APP ID" />
          </a-form-item>
        </a-col>
        <a-col :span="24">
          <a-form-item
              label="公司英文名"
              field="company_en_name"
              :rules="[{ required: true, message: '散户奖池增加消费系数' }]"
          >
            <a-input v-model="form.company_en_name" placeholder="请输入 APP ID" />
          </a-form-item>
        </a-col>
        <a-col :span="24">
          <a-form-item
              label="公司电话"
              field="company_tel"
              :rules="[{ required: true, message: '散户奖池增加消费系数' }]"
          >
            <a-input v-model="form.company_tel" placeholder="请输入 APP ID" />
          </a-form-item>
        </a-col>
        <a-col :span="24">
          <a-form-item
              label="公司邮箱"
              field="redrain_pool"
              :rules="[{ required: true, message: '散户奖池增加消费系数' }]"
          >
            <a-input v-model="form.company_addr" placeholder="请输入 APP ID" />
          </a-form-item>
        </a-col>
        <a-col :span="24">
          <a-form-item
              label="公司地址"
              field="company_addr"
              :rules="[{ required: true, message: '散户奖池增加消费系数' }]"
          >
            <a-input v-model="form.company_addr" placeholder="请输入 APP ID" />
          </a-form-item>
        </a-col>
        <a-col :span="24">
          <a-form-item
              label="公司公众号图"
              field="redrain_pool"
              :rules="[{ required: true, message: '散户奖池增加消费系数' }]"
          >
            <ma-upload v-model="userInfo.avatar" rounded />
          </a-form-item>
        </a-col>

        <a-col :span="24">
          <a-form-item
              label="公司公众号图"
              field="redrain_pool"
              :rules="[{ required: true, message: '散户奖池增加消费系数' }]"
          >

          </a-form-item>
        </a-col>

        <a-col :span="24">
          <a-form-item
              label="公司抖音图"
              field="redrain_pool"
              :rules="[{ required: true, message: '散户奖池增加消费系数' }]"
          >

          </a-form-item>
        </a-col>

        <a-col :span="24">
          <a-form-item
              label="公司小红书"
              field="redrain_pool"
              :rules="[{ required: true, message: '散户奖池增加消费系数' }]"
          >
            <a-input v-model="form.company_addr" placeholder="请输入 APP ID" />
          </a-form-item>
        </a-col>




        <a-col :span="8">
          <a-form-item class="mt-5">
            <a-button long type="primary" size="large" html-type="submit">修改配置</a-button>
          </a-form-item>
        </a-col>
      </a-row>
    </a-form>
  </div>
</template>
<script setup>
import { ref, reactive, onMounted, watch } from 'vue'
import MaUpload from '@cps/ma-upload/index.vue'
import { Message } from '@arco-design/web-vue'
import tool from '@/utils/tool'
import * as common from '@/utils/common'
import activityRain from '@/api/info/infoClass'


const form = ref({
  redrain_pool:[1,100],
  redrain_test_pool:[1,100],
  redrain_random:[1,100],
  redrain_end:1,
})
const initData=async ()=> {


}
initData();
const submitConfig = async ({ values, errors }) => {
  const response=await activityRain.submitConfig(values);
  if(response.success){
    Message.success(response.message)
  }else{
    Message.error(response.message)
  }
}
</script>
<style scoped>

</style>